package cn.jack.a2021_09_29day06

import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking

/**
 * @创建者 Jack
 * @创建时间 2021/10/12 14:57
 * @描述
 */
/*
fun main() = runBlocking {
    val job = GlobalScope.launch {
        delay(1000L)
        println("World")
    }
    println("Hello")
    job.join()
}*/

fun main() = runBlocking<Unit> {
    launch {
        delay(1000L)
        println("World")
    }
    println("Hello")
}
